//
//  AppDelegate.m
//  微博5.18
//
//  Created by jyj on 16/5/20.
//  Copyright © 2016年 jyj. All rights reserved.
//

#import "AppDelegate.h"
#import "MainViewController.h"
#import "DiscoverViewController.h"
#import "MessageViewController.h"
#import "HomeViewController.h"
#import "ProfileViewController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    //创建APP窗体
    self.window=[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    
    //设置背景颜色为白色
    self.window.backgroundColor=[UIColor whiteColor];
    //创建MainViewControllor为跟控制器
    self.window.rootViewController=[[MainViewController alloc]init];
     // 4. 设置为可见和设置为keyWindow(注:程序中可以有多个UIWindow对象,keyWidow是活跃的window，即和用户交互的window)
    [self.window makeKeyAndVisible];
    
    
    return YES;
}


@end
